<template>
  <el-container>
    <basic-crud :option="option" businessUrl="/org/loginLogController">
    </basic-crud>
  </el-container>
</template>

<script setup>
const option = {
  menuWidth: 180,
  column: [
    {
      label: "编号",
      prop: "code",
      sortable: true,
      search: true,
      minWidth: 100,
      rules: [
        {
          required: true,
          message: "编号不能为空",
          trigger: "blur",
        },
      ],
    },
    {
      label: "名称",
      prop: "name",
      sortable: true,
      search: true,
      minWidth: 100,
    },
    {
      label: "IP地址",
      prop: "ip",
      sortable: true,
      width: 150,
    },
    {
      label: "机器信息",
      prop: "machine",
      sortable: true,
      minWidth: 100,
    },
    {
      label: "执行时间",
      prop: "doTime",
      sortable: true,
      type: "datetime",
      format: 'YYYY-MM-DD HH:mm:ss',
      valueFormat: 'YYYY-MM-DD HH:mm:ss',
      width: 150,
    },
    {
      label: "是否注销",
      prop: "logoutFlag",
      sortable: true,
      enumCode: 'trueFalseDic',
      type: 'switch',
      width: 100,
    },
    {
      label: "描述",
      prop: "des",
      span: 24,
      sortable: true,
      type: 'textarea',
      minRows: 3,
      maxRows: 5
    },
  ],
}
</script>

<style lang="scss" scoped></style>
